/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AddFriends.java
 *
 * Created on 2010-12-29, 22:24:15
 */
package com.oim.swing.ui;

import javax.swing.JFrame;
import javax.swing.UIManager;

import com.oim.swing.common.box.ImageBox;

/**
 * 
 * @author XiaHui
 * @date 2015年3月8日 上午12:02:51
 * @version 0.0.1
 */
public class DefaultFrame extends JFrame {

	private static final long serialVersionUID = 1L;

	public DefaultFrame() {
		initComponents();
		initEvent();
	}

	private void initComponents() {
		this.setLocationRelativeTo(null);
		this.setIconImage(ImageBox.getImage("Resources/Images/Logo/logo_24.png"));
	}

	private void initEvent() {

	}

	/**
	 * @param args
	 *            the command line arguments
	 */
	public static void main(String args[]) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		java.awt.EventQueue.invokeLater(new Runnable() {

			@Override
			public void run() {
				DefaultFrame frame = new DefaultFrame();
				frame.setVisible(true);
			}
		});
	}
}
